package cn.smbms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.pojo.Bill;
import cn.smbms.dao.BillDao;
@Service
public class BillServiceImpl implements BillService {
	
	@Autowired
	private BillDao bdi;
	
	@Override
	public int BillByProId(String proId) {
		return bdi.BillByProId(proId);
	}

	@Override
	public List<Bill> getBillList(String name, String proId, String isPayment,int index) {
		index=index*5-5;
		return bdi.getBillList(name, proId, isPayment,index);
	}

	@Override
	public int getCount(String name,String proId,String isPayment) {
		return bdi.getCount(name, proId, isPayment);
	}

	@Override
	public int addBill(Bill bill) {
		return bdi.addBill(bill);
	}

	@Override
	public int upBill(Bill bill) {
		return bdi.upBill(bill);
	}

	@Override
	public Bill getBillById(String id) {
		return bdi.getBillById(id);
	}
	@Override
	public int delBill(String id){
		return bdi.delBill(id);
	}
}
